<?php
/**
 * Created by PhpStorm.
 * User: steven
 * Date: 2017/11/21
 * Time: 下午10:02
 */

namespace app\api\controller\v1;


use app\api\service\UserToken;
use app\api\validate\TokenGet;

class Token {
    public function getToken($code = ''){

        (new TokenGet())->goCheck();

        echo $code;
        $ut    = new UserToken($code);
        echo '11111';
        $token = $ut->get();
        return [
          'token'=>$token
        ];
    }
}